package com.service;

import com.github.pagehelper.PageInfo;
import com.pojo.Invitation;
import com.pojo.ReplyDetail;

import java.util.List;

/**
 * @author Aiden
 * @version 1.0
 * @description
 * @date 2019-12-11 13:00:40
 */
public interface ServiceInterface {
    //查询所有的帖子
    PageInfo findAllInvitation(String title, Integer pageNum, Integer pageSize);
    //根据invid查询所有的评论
   PageInfo findAllReplyDetail(Integer invid, Integer pageNum, Integer pageSize);
   //插图回复
    boolean addReply(ReplyDetail replyDetail);
    //根据id删除对应帖子和评论
    boolean removeInvitationAndReply(Integer id);
}
